package cn.seaboot.admin.api.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Size;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * POJO
 * 对象字段规则 [t_api_model_rule]
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "对象字段规则 [t_api_model_rule] 实体类")
public class ApiModelRule implements Serializable {

    private static final long serialVersionUID = 1474107350093882024L;
    /**
     * ID
     */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 工程
     */
    @Size(max = 32)
    @Schema(description = "工程")
    private String projectId;
    /**
     * 工程
     */
    @Size(max = 32)
    @Schema(description = "工程")
    private String modelId;
    /**
     * 对象ID
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "对象ID")
    private String fieldId;
    /**
     * 分组
     */
    @Size(max = 64)
    @Schema(description = "分组")
    private String group;
    /**
     * 规则类型
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "规则类型")
    private String ruleType;
    /**
     * 规则配置
     */
    @Schema(description = "规则配置")
    private String rule;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getFieldId() {
        return fieldId;
    }

    public void setFieldId(String fieldId) {
        this.fieldId = fieldId;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }
}
